import request from '@/utils/request'

// 获取操作日志列表
export function getLogsList(params) {
  return request({
    url: '/system/logs',
    method: 'get',
    params
  })
}

// 获取操作日志详情
export function getLogDetails(logId) {
  return request({
    url: `/system/logs/${logId}`,
    method: 'get'
  })
}

// 清空日志
export function clearLogs() {
  return request({
    url: '/system/logs/clear',
    method: 'delete'
  })
} 